package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.FollowThem;
import com.sk.bilibili.bean.Them;
import com.sk.bilibili.dto.Page;
import com.sk.bilibili.dto.Res;
import com.sk.bilibili.other.JsonMap;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

@Mapper
public interface ThemMapper {

    @GET("them/getRandom")
    Observable<Res<List<Them>>> getRandom(@Query("finish")Boolean finish,@Query("size") Integer size, @Query("typeId") Integer typeId);

    @GET("them/getUpdate")
    Observable<Res<List<Them>>> getUpdate(@Query("updateDay") Integer updateDay,
                                          @Query("typeId") Integer typeId);

    @GET("them/getRank")
    Observable<Res<List<Them>>> getRank(@Query("size") Integer size, @Query("typeId") Integer typeId);

    @GET("them/getThem")
    Observable<Res<Them>> getThem(@Query("id")Integer id);

}